package com.ruoyi.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum WxApiType {

	/**
	 * Native下单
	 */
	NATIVE_PAY("/v3/pay/transactions/native"),

	/**
	 * Native下单
	 */
	NATIVE_PAY_V2("/pay/unifiedorder"),

	/**
	 * JSPI下单
	 */
	JSAPI_PAY("/v3/pay/transactions/jsapi"),


	/**
	 * 查询订单
	 */
	ORDER_QUERY_BY_NO("/v3/pay/transactions/out-trade-no/%s"),

	/**
	 * 关闭订单
	 */
	CLOSE_ORDER_BY_NO("/v3/pay/transactions/out-trade-no/%s/close"),

	/**
	 * 申请退款
	 */
	DOMESTIC_REFUNDS("/v3/refund/domestic/refunds"),

	/**
	 * 查询单笔退款
	 */
	DOMESTIC_REFUNDS_QUERY("/v3/refund/domestic/refunds/%s"),

	/**
	 * 申请交易账单
	 */
	TRADE_BILLS("/v3/bill/tradebill"),

	/**
	 * 请求单次分帐 v2
	 */
	SINGLE_ACCOUNT("/secapi/pay/profitsharing"),

	/**
	 * 申请资金账单
	 */
	FUND_FLOW_BILLS("/v3/bill/fundflowbill"),

	/**
	 * 请求分账  v3
	 */
	SEND_SHARE("/v3/profitsharing/orders"),

	/**
	 * 查询分账结果
	 */
	SHARE_RESULT("/v3/profitsharing/orders/%s"),

	/**
	 * 请求分账回退
	 */
	SHARE_BACK("/v3/profitsharing/return-orders"),

	/**
	 * 查询分账回退结果
	 */
	QUERY_SHARE_BACK_RESULT("/v3/profitsharing/return-orders/%s"),

	/**
	 * 解冻剩余资金
	 */
	RELIEVE_MONEY("/v3/profitsharing/orders/unfreeze"),

	/**
	 * 查询剩余待分金额
	 */
	QUERY_RESIDUE_MONEY("/v3/profitsharing/transactions/%s/amounts"),


	/**
	 * 添加分账接收方
	 */
	ADD_SHARE_PERSON("/v3/profitsharing/receivers/add"),

	/**
	 * 删除分账接收方
	 */
	DEL_SHARE_PERSON("/v3/profitsharing/receivers/delete"),

	/**
	 * 申请分账账单
	 */
	APPLY_SHARE_BILL("/v3/profitsharing/bills");

	/**
	 * 类型
	 */
	private final String type;
}
